﻿//-----------------------------------------------------------------------
// <copyright file="SecurityContextException.cs" company="CodePlex">
//     Copyright (c) Doug Holland, CodePlex. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace CodePlex.Diagnostics.Silverlight
{
    using System;

    using System.Globalization;

    using System.Runtime.Serialization;

    using System.Security;
    using System.Security.Permissions;

    /// <summary>
    /// The exception that is thrown when the security context of a Silverlight application cannot be determined.
    /// </summary>
    public sealed class SecurityContextException : Exception
    {
        #region public SecurityContextException()

        /// <summary>
        /// Initializes a new instance of the <see cref="T:SecurityContextException"/> class.
        /// </summary>
        public SecurityContextException() : base(SR.GetString(SR.SecurityContextException))
        {
        }

        #endregion

        #region public SecurityContextException(string message) : base(message)

        /// <summary>
        /// Initializes a new instance of the <see cref="T:SecurityContextException"/> class.
        /// </summary>
        /// <param name="message">The message that describes the error.</param>
        public SecurityContextException(string message) : base(message)
        {
        }

        #endregion

        #region public SecurityContextException(string message, Exception innerException) : base(message, innerException)

        /// <summary>
        /// Initializes a new instance of the <see cref="SecurityContextException"/> class.
        /// </summary>
        /// <param name="message">The message that describes the error.</param>
        /// <param name="innerException">The exception that is the cause of the current exception, or a <c>null</c> reference (Nothing in Visual Basic) if no inner exception is specified.</param>
        public SecurityContextException(string message, Exception innerException) : base(message, innerException)
        {
        }

        #endregion
    }
}

